<template>
	<myView :position="position" :zIndex="zIndex" :top="top" :right="right" :bottom="bottom",:left="left" :width="bgWidth" :height="bgHeiht" :borderRadius="bgBorderRadius" :padding="bgPadding" :marginTop="marginTop" :marginRight="marginRight" :marginBottom:"marginBottom" :marginLeft:"marginLeft" :background="background" :opacity="opacity" :transform="transform" @confirm="confirm" :justifyContent="justifyContent" :alignItems="alignItems" v-if="src">
		<image :src="src" :mode="mode" v-if="isImg" :style="{
			width: $addUnit(width ||size),
			height: $addUnit(height || width || size),
			borderRadius: $addUnit(borderRadius) }" />
		<u-icon v-if="!isImg" :name="src" :size="size" :color="color" /> 
		<u-modal v-model="show" :content="'是否确认'+title+'？'" show-cancel-button @confirm="emit" />
	</myView>>
</template>

<script>
	export default {
		name:"myImg",
		props: {
			src: {
				type: String,
				default: ''
			}
		},
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">

</style>